﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" StylesheetTheme="Content"
    AutoEventWireup="true" CodeFile="DocumentUpLoad.aspx.cs" Inherits="Task_BaseDoc_DocumentUpLoad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 12%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="JavaScript">
        function addFile() {
            var str = '<br/><INPUT type="file" size="60" NAME="File">'
            document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)
        }
   
    </script>

    <table class="intable" border="0" cellpadding="0" width="100%" cellspacing="0">
        <caption>
            <span>上传档案</span></caption>
        <tr runat="server" id="trDepartment">
            <td style="width: 12%">
                上报单位：</td>
            <td>
                <asp:CheckBoxList ID="cblDepartment" runat="server" 
                    RepeatDirection="Horizontal" DataTextField="ShortName" 
                    DataValueField="DepartmentId" RepeatColumns="4">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td style="width: 12%">
                时间：
            </td>
            <td>
                <asp:DropDownList ID="YearList" runat="server" 
                    OnSelectedIndexChanged="YearList_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                年<asp:DropDownList ID="MonthList" runat="server" 
                    OnSelectedIndexChanged="MonthList_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
                月<asp:DropDownList ID="DayList" runat="server">
                </asp:DropDownList>
                日
            </td>
        </tr>
        <tr>
            <td style="width: 12%">
                所属分类：
            </td>
            <td>
                <asp:DropDownList ID="dptParent" Width="510px" runat="server" 
                    onselectedindexchanged="dptParent_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                排序：
            </td>
            <td>
                <asp:DropDownList ID="dptOrder" Width="510px" runat="server">
                </asp:DropDownList>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                附件：
            </td>
            <td>
                <div align="Left">
                    <p id="MyFile">
                        <asp:FileUpload ID="FileUpload2" Width="510px" runat="server" /></p>
                    <p style="width: 510px; text-align: right;">
                        <input type='button' value=' 增  加' onclick='addFile()'>
                    </p>
                    &nbsp;
                    <p>
                        <asp:Label ID="strStatus" runat="server" BorderColor="White" BorderStyle="None" Font-Bold="True"
                            Font-Names="宋体" Font-Size="9pt" Width="500px"></asp:Label>
                    </p>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="center">
                <div style="width: 300px; text-align: left;">
                    <asp:Button ID="btnUpload" runat="server" Text="上传" OnClick="btnUpload_Click" />&nbsp;<asp:Button
                        ID="btnCalcel" runat="server" Text="重置" />
                    <br />
                    <asp:Label ID="lblPrompt" runat="server" ForeColor="Red"></asp:Label>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
